package com.powernode.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 用户表
 * @TableName member
 */
@TableName(value ="member")
@Data
public class Member implements Serializable {
    /**
     * 会员表的主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * ID
     */
    @TableField(value = "open_id")
    private String open_id;

    /**
     * 用户昵称
     */
    @TableField(value = "nick_name")
    private String nick_name;

    /**
     * 真实姓名
     */
    @TableField(value = "real_name")
    private String real_name;

    /**
     * 用户邮箱
     */
    @TableField(value = "user_mail")
    private String user_mail;

    /**
     * 支付密码
     */
    @TableField(value = "pay_password")
    private String pay_password;

    /**
     * 手机号码
     */
    @TableField(value = "user_mobile")
    private String user_mobile;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime update_time;

    /**
     * 注册时间
     */
    @TableField(value = "create_time")
    private LocalDateTime create_time;

    /**
     * 注册IP
     */
    @TableField(value = "user_regip")
    private String user_regip;

    /**
     * 最后登录时间
     */
    @TableField(value = "user_lasttime")
    private LocalDateTime user_lasttime;

    /**
     * 最后登录IP
     */
    @TableField(value = "user_lastip")
    private String user_lastip;

    /**
     * M(男) or F(女)
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 例如：2009-11-27
     */
    @TableField(value = "birth_date")
    private String birth_date;

    /**
     * 头像图片路径
     */
    @TableField(value = "pic")
    private String pic;

    /**
     * 状态 1 正常 0 无效
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 用户积分
     */
    @TableField(value = "score")
    private Integer score;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}